 <div id='navi'>
 <div class='item' >
      <a href='/?fid=4&page=1'>亚洲(ai_youma)</a>
 </div>
 <div class='item' >
      <a href='/?fid=230&page=1'>亚洲(sis_youma)</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select cat, count from menu where fid=230 order by count desc';
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?fid=230&page=1&catkw=<?=$catname?>'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
 <div class='item' >
      <a href='/?fid=143&page=1'>亚洲(sis_wuma)</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select cat, count from menu where fid=143 order by count desc';
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?fid=143&page=1&catkw=<?=$catname?>'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
 <div class='item' >
      <a href='/tags.php?ttype=1'>产商编码</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select tag_name, tag_count from tag where tag_type = 1 order by tag_count desc limit 0, 30 ;';
            $mysqli->real_query($menusql);
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?page=1&tag=<?=$catname?>_1'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
 <div class='item' >
      <a href='/tags.php?ttype=2'>女优</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select tag_name, tag_count from tag where tag_type = 2 order by tag_count desc limit 0, 30 ;';
            $mysqli->real_query($menusql);
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?fid=143,4,230&page=1&kw=<?=$catname?>'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
 <div class='item' >
      <a href='/?fid=5&page=1'>欧美(ai)</a>
 </div>
 <div class='item' >
      <a href='/?fid=229&page=1'>欧美(sis_原创)</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select cat, count from menu where fid=229 order by count desc';
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?fid=229&page=1&catkw=<?=$catname?>'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
 <div class='item' >
      <a href='/?fid=77&page=1'>欧美(sis_转帖)</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select cat, count from menu where fid=77 order by count desc';
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?fid=77&page=1&catkw=<?=$catname?>'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
 <div class='item' >
      <a href='/?fid=345&page=1'>欧美(sis_小格式)</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select cat, count from menu where fid=345 order by count desc';
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?fid=345&page=1&catkw=<?=$catname?>'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
 <div class='item' >
    <a href='/?fid=27&page=1'>hentai(sis_转帖)</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select cat, count from menu where fid=27 order by count desc';
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?fid=27&page=1&catkw=<?=$catname?>'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
 <div class='item' >
    <a href='/?fid=231&page=1'>hentai(sis_原创)</a>
      <ul class='menuitem_ul'>
        <?php
            $menusql = 'select cat, count from menu where fid=231 order by count desc';
            $mysqli->real_query($menusql);
            $result = $mysqli->use_result(); 
            if ($result) {
                while ($row = $result->fetch_row()){
                    $catname = $row[0];
                    $catcount = $row[1];
                ?>
                    <li class='menuitem_li'>
                      <a href='/?fid=231&page=1&catkw=<?=$catname?>'><?=$catname?>(<?=$catcount?>)</a>
                    </li>
                <?php
                }
                $result->close();
            }
        ?>
      </ul>
 </div>
      <!--     <a href='/?fid=68&page=1'>欧美下流图</a>
      <a href='/?fid=419&page=1'>欧美下流图(SM)</a>
      <a href='/?fid=64&page=1'>亚洲下流图</a>
      <a href='/?fid=186&page=1'>亚洲清纯图</a>
      <a href='/?fid=253&page=1'>欧美清纯图</a>
-->
    <form action='index.php?page=1' style='margin-left: 10px' method='get' >
    <input style="background-color: #A2C672;width:80px;" value='<?=$kw?>'  name='kw' placeholder='搜索...'></input>
        <input type='hidden' name='page' value=1></input>
        <?php if ($fid != -1){ ?>
            <input type='hidden' name='fid' value='<?=$fid?>' ></input>
        <?php }?>
    </form>
 </div>
 
 <script>
    $(function(){
        // 下拉菜单        
        var menu = $('#navi .item')
        menu.each(function(){
            $(this).hover(function(){
               $('.catspan').hide()
               $(this).find('ul').show()
            }, 
            function(){
               $('.catspan').show()
               $(this).find('ul').hide()
            })    
        })
    })
 </script>















